def num():
    num1 =input('Please add your number:')
    num3 = num1.split(',')
    num2 = [int(number) for (number) in num3]
    def square(num):
        return num**2
    def cube(num):
        return num**3
    square_result = [square(num3) for num3 in num2]
    cube_result = [cube(num3) for num3 in num2]
    return square_result,cube_result
square_result,cube_result = num()
print(f'平方值为square_result{square_result}，立方值为{cube_result}')

    